/*
package com.smartstate.gateway.feign.fallback;

import com.smartstate.gateway.feign.client.AuthorityClientByGateway;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

//@Component
@Slf4j
public class AuthorityClientFallBack implements FallbackFactory<AuthorityClientByGateway> {
    @Override
    public AuthorityClientByGateway create(Throwable cause) {
        return (String api, String referer, String method, String authorization) -> {
            log.error(cause.getMessage(), cause);
            return cause;
        };
    }
}
*/
